package com.jiang.test;

import com.jiang.Servict.UserService;
import com.jiang.factory.Mybeanfactory;

/**
 * @author jiangjingbo
 * @version V1.0
 * @Project java2203
 * @Package com.jiang.test
 * @Description:
 * @Date 2022/6/2 10:19
 */
public class test {
    public static void main(String[] args) throws Exception {
        //创建工程对象
        Mybeanfactory mybeanfactory = new Mybeanfactory("/bean.properties");
        //从工厂获取对象
        UserService userService = (UserService) mybeanfactory.getBean("userService");
        //执行方法
        userService.registUser();
    }
}
